package com.weixin1.service;

import com.weixin1.bean.Manager;
import com.weixin1.dao.ManagerDao;

import java.sql.SQLException;

/**
 * 管理员登录注册业务类
 */
public class ManagerService {
    private ManagerDao md=new ManagerDao();

    //登录
    public Manager login(String name, String password){
        return md.getByManager(name,password);
    }
    //修改密码
    public boolean update(String password,String name,String password2) throws SQLException {
        return  md.update(password,name,password2)>0;
    }
}
